package com.jy.admin.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.jy.admin.db.dao.AgentTokenDao;
import com.jy.admin.db.entity.AgentTokenEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: zxp
* Date: 2022-06-14
* Time: 16:09:31.029
*/

@Repository
public class AgentTokenDaoImpl extends AbstractBaseMapper<AgentTokenEntity> implements AgentTokenDao {

    @Override
    public AgentTokenEntity queryAgent(String token) {
        Map<String, Object> params = new HashMap<>();
        params.put("token",token);
        return getSqlSession().selectOne(this.getStatement("queryAgent"), params);
    }
}